<template>
  <div>
    <el-table
      :data="tableData"
      style="width: 100%"
      class="spbg"
      >
      <el-table-column
        type="selection"
        width="55"
        class="xzk">
      </el-table-column>
      <el-table-column
        label="分类ID"
        prop="cid">
      </el-table-column>
      <el-table-column
        label="分类名称"
        prop="cname">
      </el-table-column>
      <el-table-column
        label="操作"
        width="150">
        <template slot-scope="scope">
        <el-button
          size="mini"
          type="danger"
          @click="handleDelete(scope.$index, scope.row)">删除</el-button>
      </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<style lang='scss'>
  
</style>

<script>
  export default {
    data() {
      return {
        tableData:[],
      }
    },
    methods: {
      getspsj(){
        let url = "/fllist";
        this.axios.get(url).then((res) => {
          console.log(res);
          this.tableData = res.data.data;
        });
      }
    },
    mounted(){
      this.getspsj()
    }
  }
</script>